package com.originskyseed.platform.log.model;

import java.io.Serializable;
import java.util.Date;

import com.originskyseed.platform.core.mongodb.bean.BaseMongo;

/**
 * 日志实体类
 */
//@Document(collection = "oper_log")
public class LoginLog extends BaseMongo implements Serializable {

	/**
	 * 主键
	 */
	private String id;

	/**
	 * 编号id
	 */
	private String numberId;

	/**
	 * 用户账号
	 */
	private String account;

	/**
	 * 用户名称
	 */
	private String userName;

	/**
	 * 访问IP
	 */
	private String ip;

	/**
	 * 登录地址
	 */
	private String address;

	/**
	 * 来源 1推广类/公会、2内容类/家族、3合作类（SOURCE_SYS）
	 */
	private Integer sourceSys;

	/**
	 * 操作时间
	 */
	private Date createTime;

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getNumberId() {
		return numberId;
	}

	public void setNumberId(String numberId) {
		this.numberId = numberId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getSourceSys() {
		return sourceSys;
	}

	public void setSourceSys(Integer sourceSys) {
		this.sourceSys = sourceSys;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "OperLog{" + "id='" + id + '\'' + ", account='" + account + '\'' + ", userName='" + userName + '\'' + ", ip='" + ip + '\'' + ", sourceSys='" + sourceSys + '\'' + ", createTime=" + createTime + '}';
	}
}